<?php
 //角色维护
 require_once("DButil.php");
 //职务表
 $sql="select r.roleName,po.powerName from t_role r 
       join t_role_power p on r.roleId=p.roleId 
       join t_power po on po.powerId=p.powerId";
 $arr=query($sql);
 // var_dump($arr) ;
 // echo $_REQUEST["username"];
 // $_SESSION["loginTeacher"]=$arr;
 header("Content-Type:application/json;charset=utf-8");
 echo json_encode($arr);
?>